using System;
using System.Globalization;
using System.Windows.Data;

namespace Triton.Common
{
	public sealed class WpfVector2iXConverter : IValueConverter
	{
		private WpfVector2iSettingsDelegate wpfVector2iSettingsDelegate_0;

		public WpfVector2iXConverter(WpfVector2iSettingsDelegate get)
		{
			wpfVector2iSettingsDelegate_0 = get;
		}

		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			return ((WpfVector2i)value).X;
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			WpfVector2i wpfVector2i = wpfVector2iSettingsDelegate_0();
			wpfVector2i.X = int.Parse((string)value);
			return wpfVector2i;
		}
	}
}
